# def add(a,b):
#     c=a+b
#     print(c)
# add(3,4)

# add(7,15)

# def jisuanji(a,b,hang):
#     c=0
#     if hang =='+':
#         c=a+b
#     elif hang =='-':
#         c=a+b
#     elif hang =='*':
#         c=a*b
#     elif hang =='/':
#         c=a/b
#     elif hang =='%':
#         c=a%b
#     else:
#         print('未知运算符，暂不支持!')
#     return c
# result=jisuanji(2,6,'+')
# print(result)
#
# result=jisuanji(2,6,'*')
# print(result)
# result=jisuanji(100,5,'/')
# print(result)


# def jisuanji():
#     c = 0
#     a = int(input('请输入第一个数'))
#     b = int(input('请输入第二个数'))
#     hang = input('请输入运算符')
#     if hang == '+':
#         c = a + b
#     elif hang == '-':
#         c = a + b
#     elif hang == '*':
#         c = a * b
#     elif hang == '/':
#         c = a / b
#     elif hang == '%':
#         c = a % b
#     else:
#         print('未知运算符，暂不支持!')
#     return c
#
# print(int(jisuanji()))


# def jisuanji():
#     t = 0
#     while t < 10:
#             c = 0
#             a = int(input('请输入第一个数'))
#             b = int(input('请输入第二个数'))
#             hang = input('请输入运算符')
#             if hang == '+':
#                 c = a + b
#             elif hang == '-':
#                 c = a + b
#             elif hang == '*':
#                 c = a * b
#             elif hang == '/':
#                 c = a / b
#             elif hang == '%':
#                 c = a % b
#             else:
#                 print('未知运算符，暂不支持!')
#             print(c)
#             t = t + 1
#
# int(jisuanji())
#
# def jisuanji():
#     for t in range(5,20):
#         c = 0
#         a = 30
#         b = 10
#         hang = '+'
#         if hang == '+':
#             c = a + b
#         elif hang == '-':
#             c = a + b
#         elif hang == '*':
#             c = a * b
#         elif hang == '/':
#             c = a / b
#         elif hang == '%':
#             c = a % b
#         else:
#             print('未知运算符，暂不支持!')
#         print(int(c))
# jisuanji()

# def jisuanji(a, b, hang):
#     c = 0
#     if hang == '+':
#         c = a + b
#     elif hang == '-':
#         c = a + b
#     elif hang == '*':
#         c = a * b
#     elif hang == '/':
#         c = a / b
#     elif hang == '%':
#         c = a % b
#     else:
#         print('未知运算符，暂不支持!')
#     return (c)
#
#
# li = [(10, 20, '+'), (30, 40, '-'), (50, 60, '*'), (70, 10, '/')]
# for t in li:
#     q = t[0]
#     w = t[1]
#     e = t[2]
#     result = jisuanji(q, w, e)
#     print('{},{},{}={}'.format(q, e, w, result))

#
# def jisuanji(a, b, hang):
#     c = 0
#     if hang == '+':
#         c = a + b
#     elif hang == '-':
#         c = a + b
#     elif hang == '*':
#         c = a * b
#     elif hang == '/':
#         c = a / b
#     elif hang == '%':
#         c = a % b
#     else:
#         print('未知运算符，暂不支持!')
#     return (c)
#
#
# li = [{'a':10,'b':20,'c':'+'},{'a':10,'b':20,'c':'-'},{'a':10,'b':20,'c':'*'},{'a':10,'b':20,'c':'/'}]
# for t in li:
#     q = t['a']
#     w = t['b']
#     e = t['c']
#     result = jisuanji(q, w, e)
#     print('{},{},{}={}'.format(q, e, w, result)












